package com.efounder.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2018/9/19 9:22
 * @desc : 选择支付页面的bean  使用多布局加载item  使用方式：https://www.jianshu.com/p/b343fcff51b0
 * @version: 1.0
 */
public class MallSelectionPayMultipleBean implements MultiItemEntity, Serializable {
    /**
     *  //选择钻的支付item
     */
    public static final int PAY_WAY_ITEM = 1001;
    /**
     * //其他支付方式的文本item
     */
    public static final int OTHER_RECHARGE_WAY_TEXT = 1002;
    /**
     * 支付宝 微信 支付的item
     */
    public static final int OTHER_RECHARGE_WAY_ITEM = 1003;
    /**
     * 阿里支付类型
     */
    public static final String  ALI_PAY = "ali";
    /**
     * 微信支付类型
     */
    public static final String WX_PAY = "wx";
    /**
     * 能量支付类型
     */
    public static final String POWER_PAY = "2";
    /**
     * 黑钻支付类型
     */
    public static final String BLACK_PAY = "black_pay";
    /**
     * 银钻支付类型
     */
    public static final String SILVER_PAY = "1";
    /**
     * FGT支付类型
     */
    public static final String FGT_PAY = "4";



    private int itemType;

    private String payType = "";

    private SelectionPay selectionPay;

    public MallSelectionPayMultipleBean(){

    }

    public MallSelectionPayMultipleBean(int itemType,SelectionPay selectionPay) {
        this.itemType = itemType;
        this.selectionPay = selectionPay;
    }

    public MallSelectionPayMultipleBean(int itemType, String payType, SelectionPay selectionPay) {
        this.itemType = itemType;
        this.payType = payType;
        this.selectionPay = selectionPay;
    }

    public SelectionPay getSelectionPay() {
        return selectionPay;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }



    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    @Override
    public int getItemType() {
        return itemType;
    }

    public static class SelectionPay{



        /**
         * 标题
         */
        private String title;
        /**
         * 图片资源
         */
        private int imageRs;
        /**
         * 是否可以支付
         */
        private boolean isPay;
        /**
         * 剩余钻的数量
         */
        private String surplusNum = "0";
        /**
         * 是否选择此支付方式
         */
        private boolean isSelectPayWay;
        /**
         * 支付状态提示
         * 1、如果余额不足 提示余额不足
         * 2、提示抵扣数量
         */
        private String payStatusHint = "";

        /**
         * 积分的图片资源
         */
        private String tokenIcon;

        private String tokenAmount;
        private String rmbValue;
        private String tokenTypeId;

        public SelectionPay() {
        }

        public SelectionPay(String title, int imageRs, boolean isPay) {
            this.title = title;
            this.imageRs = imageRs;
            this.isPay = isPay;
        }

        public SelectionPay(String title, int imageRs, boolean isPay, String surplusNum) {
            this.title = title;
            this.imageRs = imageRs;
            this.isPay = isPay;
            this.surplusNum = surplusNum;
        }

        public SelectionPay(String title, int imageRs, boolean isPay, String surplusNum, boolean isSelectPayWay, String payStatusHint) {
            this.title = title;
            this.imageRs = imageRs;
            this.isPay = isPay;
            this.surplusNum = surplusNum;
            this.isSelectPayWay = isSelectPayWay;
            this.payStatusHint = payStatusHint;
        }

        public String getTokenAmount() {
            return tokenAmount;
        }

        public void setTokenAmount(String tokenAmount) {
            this.tokenAmount = tokenAmount;
        }

        public String getRmbValue() {
            return rmbValue;
        }

        public void setRmbValue(String rmbValue) {
            this.rmbValue = rmbValue;
        }

        public String getTokenTypeId() {
            return tokenTypeId;
        }

        public void setTokenTypeId(String tokenTypeId) {
            this.tokenTypeId = tokenTypeId;
        }

        public String getTokenIcon() {
            return tokenIcon;
        }

        public void setTokenIcon(String tokenIcon) {
            this.tokenIcon = tokenIcon;
        }

        public String getPayStatusHint() {
            return payStatusHint;
        }

        public void setPayStatusHint(String payStatusHint) {
            this.payStatusHint = payStatusHint;
        }

        public boolean isSelectPayWay() {
            return isSelectPayWay;
        }

        public void setSelectPayWay(boolean selectPayWay) {
            isSelectPayWay = selectPayWay;
        }

        public String getSurplusNum() {
            return surplusNum;
        }

        public void setSurplusNum(String surplusNum) {
            this.surplusNum = surplusNum;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getImageRs() {
            return imageRs;
        }

        public void setImageRs(int imageRs) {
            this.imageRs = imageRs;
        }

        public boolean isPay() {
            return isPay;
        }

        public void setPay(boolean pay) {
            isPay = pay;
        }
    }
}
